Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

About Device Driver Programing

42 views
Skip to first unread message

Zhe Xiang

unread,
Dec 25, 2002, 5:43:13 AM12/25/02
to
Hi,
I had compiled a NDIS device driver( called NDISUIO, which is a sample
device driver in CE’DDK) and installed the driver into my CEPC. Now, I need
to write a program to test the driver. But I do not know how to communicate
with the device driver in my program.

In NT, device driver is a “sys” file. I can use CreateFile to create a
handle to map a lower device driver. In CE, the device driver is a “dll”
file. I tried the CreateFile but failed.

I can not find any helpful document in MSDN. How can I communicate with a
device driver in program? Please give me some hints.

Thanks.

Zhe


Jeff Kelley [MS]

unread,
Dec 28, 2002, 10:09:12 PM12/28/02
to
The sample registry settings for NDISUIO in common.reg are:

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NDISUIO]
"Prefix"="UIO"
"Dll"="ndisuio.dll"
"Index"=dword:1
"Order"=dword:3

These settings cause NDISUIO to load and register as "UIO1:". So, an
application should then succeed if it does a CreateFile and specifies the
filename as "UIO1:". Since your CreateFile is failing, I would recommend
that you check:
1. That the registry settings are present,
2. That NDISUIO is loading and initializing successfully (it will be
registered as an NDIS protocol driver if it was successful), and
3. That the application calling CreateFile is specifying the correct
filename.

--
Jeff Kelley
Windows CE Networking

This posting is provided "AS IS" with no warranties, and confers no rights.

"Zhe Xiang" <msnews.microsoft.com> wrote in message
news:#99UnJArCHA.436@TK2MSFTNGP12...

0 new messages